[paket]
tanim   = Linux için yazılım dağıtımı ve paket yönetimi için bir yardımcı program. 
paketci = Cihan_Alkan
grup    = kütüphane
url     = https://flatpak.org

[gerek]
derleme    = docbook-xsl xmlto bubblewrap xdg-dbus-proxy ostree
calisma    = bubblewrap ostree appstream-glib elogind

[kaynak]
git     = https://github.com/flatpak/flatpak 
git     = https://gitlab.gnome.org/GNOME/libglnx
git     = https://github.com/projectatomic/bubblewrap
git     = https://github.com/flatpak/xdg-dbus-proxy
1= https://dl.flathub.org/repo/flathub.flatpakrepo
2= https://github.com/archlinux/svntogit-packages/raw/packages/flatpak/trunk/flatpak-bindir.sh

[sha256]
#1 = d45f209d837c49dae6deebcdd87b8cc3b04ea290880358faecf5e7737740c771

[derle]
betik =   cd $isim
betik = git submodule init
betik = git config --local submodule.bubblewrap.url "$SRC/bubblewrap"
betik = git config --local submodule.libglnx.url "$SRC/libglnx"
betik = git config --local submodule.dbus-proxy.url "$SRC/xdg-dbus-proxy"
betik = git submodule update
betik = sed -i '/locale\/C\./d' tests/make-test-runtime.sh
betik = NOCONFIGURE=1 ./autogen.sh
betik = ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin --libexecdir=/usr/lib --disable-static --with-system-bubblewrap --with-system-dbus-proxy --disable-documentation --with-dbus-config-dir=/usr/share/dbus-1/system.d
betik = sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
betik = make

[pakur]
betik = cd $isim
betik = make DESTDIR="$PKG" install
betik = rm -rf "$PKG/usr/share/selinux"
betik = install -Dm644 "/sources/flatpak-bindir.sh" "$PKG/etc/profile.d/flatpak-bindir.sh"
betik = install -Dm644 "/sources/flathub.flatpakrepo" "$PKG/etc/flatpak/remotes.d/flathub.flatpakrepo"
betik = install -d -o root -g 102 -m 750 "$PKG/usr/share/polkit-1/rules.d"
